/**错误消息显示类 */
class ErrorMessage extends eui.Component {
	/**错误消息显示文本 */
	private errorMsg: eui.Label;
	/**退出按钮 */
	private exitBtn: eui.Image;
	/**构造 */
	public constructor() {
		super();
		this.skinName = "ErrorMessageSkin";
	}
	/**错误消息显示 */
	public errorMsgShow(msg: string) {
		this.errorMsg.text = msg;
		if (this.parent) {
			this.exitBtn.once(egret.TouchEvent.TOUCH_TAP, e => { this.parent.removeChild(this) }, this);
		}
	}
}